<h2>心情管理</h2>
<script type="text/javascript" src="/js/state.js"></script>
<script type="text/javascript" src="/js/calendar/WdatePicker.js"></script>

<form action="?_app=comment&_controller=signature&_action=searchStateDate" method="POST"  >
<table class="list" cellpadding="0" cellspacing="0" with="100%">
<input type="hidden" name='action' value="search" >
<tr><td> 用户uid	:<input type="text" name="uid" value=""></td></tr>
<tr><td>开始时间	:<input id="start" name="start" class="Wdate" type="text" onFocus="var end=$dp.$('end');WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){end.focus();},maxDate:'#F{$dp.$D(\'end\')}'})" value="<?=_('start')?>" style="width:150px"/></td>
<td>结束时间	:<input type="text" id="end" name="end" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'start\')}'});" class="Wdate" style="width:150px" value="<?=_('end')?>"/> </td> </tr>
<tr> <td> <input type="submit" value="搜索" >  </td></tr>
</table>
</form>
<br><br>
<table class="list" cellpadding="0" cellspacing="0" with="100%">

    	<thead align="right">
    <td colspan="9">
<a href="<?= AdminController::_makeURL('comment', 'signature', 'index') ?>">全部</a> ||
<a href="<?= AdminController::_makeURL('comment', 'signature', 'NoVerify') ?>">未审核</a> ||
<a href="<?= AdminController::_makeURL('comment', 'signature', 'passVerify') ?>">已审核</a> ||
<a href="<?= AdminController::_makeURL('comment', 'signature', 'delshow') ?>">已删除</a>
    </td>
    </thead>
	<thead align="center">
		<td nowrap>序号</td>
		<td nowrap>创建者id</td>
		<td nowrap>创建者</td>
		<td nowrap>心情内容</td>
		<td nowrap>时间</td>
		<td nowrap>状态</td>
		<td nowrap>操作</td>
	</thead>
<? if($this->data) : ?>
<form action="/?_app=comment&_controller=signature&_action=check_verify" method="POST" >
<?foreach($this->data as $row):?>
	<tr align="center">
	  
		<td nowrap><?= $row['id']?></td>
		<td nowrap align="left" ><?= $row['uid']?></td>
		<td nowrap align="left" ><?= $row['username']?></td>
		<td nowrap align="left" ><?= $row['state']?></td>
		<td nowrap align="left" ><?= date('Y-m-d H:i:s',$row['create_time']) ?></td>
		<td nowrap align="left" >
		<?
		if($row['verify'] == 0) echo '未审核';
		else echo '审核';
		?></td>
		<td nowrap align="center">		
			<?php if($row['delete']==2):?>
			<!-- <a href='###' sid="<?= $row['id']?>" class="delete-link">恢复</a> -->
			<a href="<?= AdminController::_makeURL('comment','signature','recover_del',array('id'=>$row['id'])) ?>" >恢复</a>
			<?php else:?>
			<?php if($row['verify']!=1 ):?>
			<label for="<?=$row['id']?>_1">
			<input type="radio" id="<?=$row['id']?>_1" value="0" name="verify[<?=$row['id']?>]" checked="checked" />通过</lable>
			<?php endif;?>
			<label for="<?=$row['id']?>_0">
			<input type="radio" id="<?=$row['sms_id']?>_0" value="1" name="verify[<?=$row['id']?>]" />删除</lable>
			<?php endif;?>			
		</td>
	</tr>
	<? endforeach;?>
	<?endif?>
</table>
<table class="list" cellpadding="0" cellspacing="0">
	<thead>
		<td nowrap>
		&nbsp;&nbsp;<input type="submit" id="verify"  value="审核"  /> &nbsp;&nbsp;
        </td>
        </form>
    	<td align="right" nowrap>
			<?=$this->pageinfo?>
        </td>
    </thead>
</table>
<div class="page">
			<?=	$this->pageinfo ?>
</div>